<?php

class Ext_Url_Auth
{
    public $login;
    public $logout;
    public $register;
    
    public function __construct()
    {
        $this->_build();
    }
    
    private function _build()
    {
        $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
        $bootstrap->bootstrap('view');
        $view = $bootstrap->getResource('view');
        
        $this->login    = $view->url(array('module'=>'account', 'controller'=>'login', 'action'=>'show-form'), "default", true);
        $this->logout   = $view->url(array('module'=>'account', 'controller'=>'auth', 'action'=>'logout'), "default", true);
        $this->register = $view->url(array('module'=>'account', 'controller'=>'register', 'action'=>'show-form'), "default", true);
    
    }

}